package com.zoo.constant;

import com.alibaba.fastjson.JSONArray;

import java.util.concurrent.ConcurrentHashMap;

public class Constant {

    /**
     * 在线聊天
     */
    public static class ChatInfo {
        //图灵机器人名字
        public final static String TULING_NAME = "小强";

        //聊天信息
        public static ConcurrentHashMap<String, JSONArray> CHAT_LIST = new ConcurrentHashMap<>();

        //保存在线人员
        public static ConcurrentHashMap<String, Object> ONLINE = new ConcurrentHashMap<>();
    }


    /**
     * redis 相关参数
     */
    public static class RedisInfo {
        //redis
        public final static String LEAVE_MESSAGE = "leave-message";
    }
}
